package com.example.design.a.builder;

/**
 * 抽象建造者
 */
public abstract class ComputerBuilder {

    /**
     * 实例化产品对象
     */
    protected Computer computer = new Computer();

    /**
     * 构造键盘
     */
    public abstract void buildKeyBoard();

    /**
     * 构造鼠标
     */
    public abstract void buildMouse();

    /**
     * 构造显示器
     */
    public abstract void buildScreen();

    /**
     * 得到电脑
     *
     * @return
     */
    public abstract Computer getComputer();
}
